import { defineConfig } from "vite";
import Vue from "@vitejs/plugin-vue";
import Components from "unplugin-vue-components/vite";
import AutoImport from "unplugin-auto-import/vite";
import {
  ElementPlusResolver,
  NaiveUiResolver,
} from "unplugin-vue-components/resolvers";

export default defineConfig({
  plugins: [
    Vue(),
    Components({
      resolvers: [ElementPlusResolver(), NaiveUiResolver()],
    }),
    AutoImport({
      imports: ["vue", "vue-router", "pinia"],
    }),
  ],
});
